<?php
class register {
	public function register() {
		echo '
		<div class="modal-header">
			<a class="close" data-dismiss="modal">&times;</a>
			<h3>REGISTER</h3>
			
		</div>
		<div class="modal-body">
			<ul class="nav nav-tabs" role="tablist" >
			  <li role="presentation" class="active"><a data-toggle="tab" href="#siswa">Siswa</a></li>
			  <li role="presentation" ><a data-toggle="tab" href="#guru">Guru</a></li>
			</ul>
			<div class="tab-content">
		        <div class="tab-pane active" id="siswa">
					<form class="form-horizontal" role="form" action="proses/konekregis.php" method="POST">
						<div class="form-group">
							<label class="col-sm-3 control-label">Nama Depan</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="firstnm" placeholder="Masukkan Nama Depan" required />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Nama Belakang</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="lastnm" placeholder="Masukkan Nama Belakang" required />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Kelas</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="kls" placeholder="Masukkan Kelas" required />
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label">Alamat E-Mail</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="email" placeholder="Masukkan Alamat E-Mail"  type="email" autofocus />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Password</label>
							<div class="col-sm-9">
								<input class="form-control" type="password" name="pass" placeholder="Masukkan Password" required />
							</div>
						</div>
						<div class="modal-footer">
						<button class="btn btn-primary" type="submit" name="insertsiswa">Register</button>
						</div>
					</form>
				</div>
				
		        <div class="tab-pane" id="guru">
                    <form class="form-horizontal" role="form" action="proses/konekregis.php" method="POST">
						<div class="form-group">
							<label class="col-sm-3 control-label">Nama Depan</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="firstnm" placeholder="Masukkan Nama Depan" required />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Nama Belakang</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="lastnm" placeholder="Masukkan Nama Belakang" required />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Tanggal Lahir</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="ttl" placeholder="Masukkan Tanggal Lahir (1999-12-01)">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Mata Pelajaran</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="mapel" placeholder="Mata Pelajaran yang diajar" required />
							</div>
						</div>
                        <div class="form-group">
							<label class="col-sm-3 control-label">Username</label>
							<div class="col-sm-9">
                                <input class="form-control" type="text" name="username" placeholder="Username ID" required/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Alamat E-Mail</label>
							<div class="col-sm-9">
								<input class="form-control" type="text" name="email" placeholder="Masukkan Alamat E-Mail" type="email" autofocus />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Password</label>
							<div class="col-sm-9">
								<input class="form-control" type="password" name="pass" placeholder="Masukkan Password" required />
							</div>
						</div>
						<div class="modal-footer">
						<button class="btn btn-primary" type="submit" name="insertguru">Register</button>
						</div>
					</form>
				</div>
			</div>
        </div>       
		';
	}
}